package com.xyz.mockapi.mainlineorder.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xyz.mockapi.common.entity.OnlineBomList;
import com.xyz.mockapi.common.mapper.OnlineBomMapper;
import com.xyz.mockapi.mainlineorder.service.OnlineBomService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class OnlineBomServiceImpl
        extends ServiceImpl<OnlineBomMapper, OnlineBomList>
        implements OnlineBomService {
    @Override
    public List<OnlineBomList> listByItemcode(String itemcode) {
        return lambdaQuery().eq(OnlineBomList::getFItemcode, itemcode).list();
    }
}